﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/Admin.Master" AutoEventWireup="true" CodeBehind="CargoStatus_Update.aspx.cs" Inherits="Ryder_US_Website.Presentation.Admin.CargoStatus_Update" Title="CargoStatus_Update" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language="javascript" type="text/javascript">
    function validateForm() {
        if (document.getElementById('<%=txtTenTTDonHang.ClientID%>').value == "" || document.getElementById('<%=txtTenTTDonHang.ClientID%>').value.length < 1) {
            alert("Tên tình trạng đơn hàng không được để trống");
            document.getElementById('<%=txtTenTTDonHang.ClientID%>').focus();
        }
        else if (document.getElementById('<%=txtMoTa.ClientID %>').value == "" || document.getElementById('<%=txtMoTa.ClientID %>').value.length < 1) {
            alert("Mô tả không được để trống");
            document.getElementById('<%=txtMoTa.ClientID %>').focus();
        }
        else
            return true;
        return false;
    }
</script>
<h1 class="title">
        Cập nhật tình trạng đơn hàng</h1>
    <p>
    </p>
    <form id="MainForm" method="post" action="" name="MainForm">
    <table style="width: 91%;">
        <tr>
            <td colspan="4" class="style1">
                <p>
                </p>
            </td>
        </tr>
<tr>
            <td style="width:45%;"class="style2">
                <asp:Label ID="lbTenTTDonHang" runat="server" Text="Tên tình trạng đơn hàng:"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
            </td>
            <td colspan="2" class="style1">
                <asp:TextBox ID="txtTenTTDonHang" runat="server" Width="350px" Font-Size="Medium"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="4" class="style1">
                <p>
                </p>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbMoTa" runat="server" Text="Mô tả:"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
            </td>
            <td colspan="2" class="style1">
                <asp:TextBox ID="txtMoTa" runat="server" Width="350px" Font-Size="Medium" 
                    TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr> 
        <tr>
            <td colspan="4" class="style1">
                <p>
                </p>
            </td>
        </tr> 
        <tr>
            <td style="width: 25%" class="style2">
                <asp:Label ID="lbTinhTrang" runat="server" Text="Tình trạng:"></asp:Label>
            </td>
            <td style="width: 2%">
            </td>
            <td colspan="2" class="style1">
                <asp:RadioButton ID="rbConSuDung" runat="server" Text="Còn sử dụng" Checked="True" GroupName="trash"
                    Font-Size="Medium" />
                &nbsp;
                <asp:RadioButton ID="rbDaXoa" runat="server" Text="Đã xóa" GroupName="trash" Font-Size="Medium" />
            </td>
        </tr>
        <tr>
            <td colspan="4" class="style1">
                <p>
                </p>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
            <td colspan="2">
                <asp:Button ID="btnCapNhat" runat="server" Text="Cập nhật" CssClass="button" OnClientClick="return validateForm();" 
                    onclick="btnCapNhat_Click" />&nbsp;
                <asp:Button ID="btnHuy" runat="server" Text="Hủy" CssClass="button" 
                    onclick="btnHuy_Click" />
            </td>
        </tr>
    </table>
    </form>
</asp:Content>
